This sample script implements wrappers for the low level AppleEvents and shows how to call the NetEvents TCP/IP routines to implement a simple HTTP client. Read the comments for details. See the sample calls at the end of this source file.